package kr.hkit.androidcomplete01.chapter06;

import kr.hkit.androidcomplete01.R;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

public class CodeLayout extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.codelayout);
		
		LinearLayout layout = (LinearLayout)findViewById(R.id.myleanear);
		layout.setOrientation(LinearLayout.HORIZONTAL);
		
		Button myBtn = (Button)findViewById(R.id.mybutton);
		myBtn.setTextSize(40);
		
		EditText myEdit = (EditText)findViewById(R.id.myedit);
		myEdit.setTextColor(Color.GREEN);
	}
}
